import request from '@/utils/request'

// 获取model meta信息
export function getModelMeta(params) {
  return request({
    url: '/api/normal/model/meta',
    method: 'get',
    params
  })
}

// 获取model meta信息
export function getPageMetaList(page_name) {
  return request({
    url: '/api/normal/page/meta/list',
    method: 'get',
    params: {
      name: page_name
    }
  })
}

// 获取model data信息
export function getModelData(params) {
  console.log(params)
  return request({
    url: '/api/normal/model/data',
    method: 'get',
    params
  })
}


export function getRoutes() {
  return request({
    url: '/api/normal/router',
    method: 'get'
  })
}

